// dataprocessor.cpp
#include "dataprocessor.h"
#include <QDebug>

DataProcessor::DataProcessor(QObject *parent)
    : QObject(parent)
{
}

QString DataProcessor::processData(const QString &input)
{
    // 你的数据处理逻辑
    QString result = input.toUpper();
    emit dataProcessed(result);
    return result;
}

QVariantList DataProcessor::processArray(const QVariantList &data)
{
    QVariantList result;
    for (const auto &item : data) {
        // 处理每个数据项
        result.append(item.toString().toUpper());
    }
    return result;
}
